package com.jy.shenghuilogistics.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import com.jy.shenghuilogistics.bean.Dispatchinfo;
import com.jy.shenghuilogistics.bean.DouDispatch;
import com.jy.shenghuilogistics.bean.Trucks;

import java.util.List;

@Mapper
@Repository
public interface TruckMapper {
    List<Trucks> selTruck(Trucks t);

    Integer insTrucks(Trucks t);

    Integer updTrucks(Trucks t);

    Integer insDispatchinfo(Dispatchinfo dispatchinfo);

    Integer insDouDispatch(DouDispatch d);

    List<Trucks> selWaitTruckBySite(String name);

    Dispatchinfo selNewestDispaByTruck(Integer id);

    List<DouDispatch> selDocuByDispa(Integer id);

    List<Dispatchinfo> selDispatch(Dispatchinfo d);
}
